package com.linln.admin.system.validator;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 小懒虫
 * @date 2018/8/14
 */
@Data
public class ItemCatValid implements Serializable {
    @NotEmpty(message = "分类名不能为空")
    private String title;
    @NotNull(message = "父级不能为空")
    private Long pid;

}
